<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<script src="../node_modules/vue/dist/vue.js"></script>
<body>
    <!-- 给html标签的属性绑定 -->
    <div id="app">
        <a v-bind:href="url">go</a>
        <!-- class,style  {class名：加上？}-->
        <span v-bind:class="{intro:t}">123</span>
        <!-- 简写 -->
        <span :style="{color:b}">456</span>
    </div>
</body>
<script>
    new Vue({
        el:"#app",
        data:{
            url:"http://www.baidu.com",
            t:true,
            f:false,
            b:'blue'
        },
        methods:{
           
        }
    })
</script>
<style>
    .intro 
    {
        color:rgb(255, 0, 30);
    }
    .important 
    {
        color:green;
    }
    </style>
</html>